package com.ruoyi.technician.mapper;

import com.ruoyi.technician.domain.TechnicianConsumeDetail;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 收入明细Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
public interface TechnicianConsumeDetailMapper 
{
    /**
     * 查询收入明细
     * 
     * @param id 收入明细主键
     * @return 收入明细
     */
    public TechnicianConsumeDetail selectTechnicianConsumeDetailById(Long id);

    /**
     * 查询收入明细列表
     * 
     * @param technicianConsumeDetail 收入明细
     * @return 收入明细集合
     */
    public List<TechnicianConsumeDetail> selectTechnicianConsumeDetailList(TechnicianConsumeDetail technicianConsumeDetail);

    /**
     * 新增收入明细
     * 
     * @param technicianConsumeDetail 收入明细
     * @return 结果
     */
    public int insertTechnicianConsumeDetail(TechnicianConsumeDetail technicianConsumeDetail);

    /**
     * 修改收入明细
     * 
     * @param technicianConsumeDetail 收入明细
     * @return 结果
     */
    public int updateTechnicianConsumeDetail(TechnicianConsumeDetail technicianConsumeDetail);

    /**
     * 删除收入明细
     * 
     * @param id 收入明细主键
     * @return 结果
     */
    public int deleteTechnicianConsumeDetailById(Long id);

    /**
     * 批量删除收入明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTechnicianConsumeDetailByIds(Long[] ids);

    BigDecimal selectAddAmount(@Param("tid")Long tid, @Param("priceStatus")Integer priceStatus);

    BigDecimal selectPayoutAmount(@Param("tid")Long tid);

    TechnicianConsumeDetail selectOne(@Param("payoutId") Long payoutId);
}
